#ifndef GENERAL_H
#define GENERAL_H

#include "ForceEntity.h"

struct GeneralEntry:public EntityEntry
{
    char gender;
    short command;
    short fight;
    short intellect;
    short political;
    short attraction;
    short birth;
    short death;
    short turnout;
};

class sgKingdom;

class sgGeneral:public sgForceEntity
{
public:
    sgGeneral( int type = 0 );
    ~sgGeneral( );
    virtual bool Initialize( );
    GeneralEntry &GetEntry( );
    sgGeneral *Clone( );
    virtual void Render();
    virtual void Serialize( CSerialize& s );
    static sgObject *Creator( );
    static bool m_creatorRegisted;

protected:
    int m_type;
    GeneralEntry m_entry;
};

#endif